/*
 * Copyright (c) 2017-2019, Lindenis Tech. Ltd.
 * All rights reserved.
 *
 * File:
 *
 * Description:
 *
 * Author:
 *      xiaoshujun@lindeni.com
 *
 * Create Date:
 *      2019/08/27
 *
 * History:
 *
 */

#ifndef __LIVE_SINK_H__
#define __LIVE_SINK_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "lindsink.h"
#include "lindcomponent.h"

typedef long livesink_handle;

livesink_handle livesink_create();
void livesink_destroy(livesink_handle sink_handle);
int  livesink_init(livesink_handle sink_handle, livesink_config_t * p_config);
int  livesink_deinit(livesink_handle sink_handle);

/**
 * @Deprecated
 */
int  livesink_write(livesink_handle sink_handle, av_frame_t * p_frame);

int  livesink_write2(livesink_handle sink_handle, av_frame2_t * p_frame);

#ifdef __cplusplus
}
#endif

#endif  // __LIVE_SINK_H__

